package test02;

/**
 * @author ZQX
 * @date 2025-04-09
 */
public enum Color {
    RED("红"),
    GREEN("绿"),
    BLUE("蓝");

    private String value ;

    Color(String value) {
        this.value = value ;
    }

    // 添加成员方法
    public String getValue() {
        return value;
    }

    @Override
    public String toString() {
        return this.value ;
    }
}
